Before we begin, let me assure you that if you don't know what AppleEvents are you won't need to read this document. If you do know what they are, and you want to know how they work with AliasZoo, then this is the place.
All versions of AliasZoo since version 2.0 have supported the standard four AppleEvents (Open, New, Quit, Print). However, version 2.0.3 added support for a number of new AppleEvents specific to AliasZoo. This document will include a description of these events, along with complete definitions for them (this will likely only interest those who REALLY enjoy playing with AppleEvents).
Along with the new events introduced in version 2.0.3, support was added for AppleScript. You can now use AppleScript to write scripts to control almost all of AliasZoo's actions. In fact, if you plan on using AppleScript you can probably avoid reading this document. Instead, start up the AppleScript editor and select "Open Dictionary..." from the editor's File menu. Select AliasZoo, and click "Open". You should now see a complete list of the entire AppleScript syntax for controlling AliasZoo. Have fun!
So, without further delay, let's start the show...
STANDARD EVENTS SUPPORTED BY AliasZoo
Open - Starts AliasZoo. Does nothing if AliasZoo is already running.
New - Starts AliasZoo. Does nothing if AliasZoo is already running.
Quit - Quits AliasZoo.
Print - Prints AliasZoo's shareware registration form. Will require AliasZoo to come to the foreground.
EVENTS UNIQUE TO AliasZoo
All events unique to AliasZoo are of the class 'kAZo'.
kFindEvent 'AZfd'
Sending this event to AliasZoo is the same as clicking the Find button.
kResolveEvent 'AZrs'
Sending this event is the same as clicking the Resolve button. When you send this event to AliasZoo it will begin resolving aliases, but it will not display any indication that it is working if it is in the background at the time.
Sending this is the same as clicking the delete button. Note that this will only work on alias files that are selected in the display. The boolean parameter 'pDlg' is true if you want AliasZoo to display a confirmation dialog before deleting. If the parameter is not provided, the default is to display a dialog. Also note that requesting AliasZoo to display the dialog will require it to come to the foreground.
kVolumeEvent 'AZsw' required parameter: Text 'pTo '
Sending this event, along with a text parameter 'pTo ' (notice that the fourth character is a space), will cause AliasZoo to switch to the volume named by 'pTo '. If you pass the name of a non-existant volume, AliasZoo reports an error and does nothing. Note, you currently cannot set AliasZoo to search a specific folder using AppleEvents.
kAttachEvent 'AZat'
Sending this event is the same as clicking the attach button. Note that this will only work on alias files that are selected in the display. Also note that sending this event will cause AliasZoo to switch to the foreground (or request that the user bring it to the front) so it can display the attach dialog(s).